package com.wu.mongo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author Cousin
 * @date 2025/4/1
 * @Description
 */
@Document
@Data

public class Rank {
    @Id
    private ObjectId id;
    private String name;
    private String description;
    private String updateFrequency;
    private String backgroundColor;
    private Date createTime;
    public Rank(String name, String description, String updateFrequency, String backgroundColor,Date createTime) {
        this.name = name;
        this.description = description;
        this.updateFrequency = updateFrequency;
        this.backgroundColor = backgroundColor;
        this.createTime = createTime;
    }
}
